import 'package:flutter/foundation.dart';

class PreviewPicBean {
  ///初始显示的位置
  int position;

  ///图片集合
  List<String> picList;

  PreviewPicBean({
    @required this.picList,
    this.position = 0,
  });

  PreviewPicBean.fromJson(Map<String, dynamic> json) {
    this.position = json['position'];
    List<dynamic> picListList = json['picList'];
    this.picList = new List();
    this.picList.addAll(picListList.map((o) => o.toString()));
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['position'] = this.position;
    data['picList'] = this.picList;
    return data;
  }
}
